@extends('edu::layouts.center')
@section('content')
    <div class="card">
        <div class="card-body">
            <ul class="list-group list-group-flush">
                @if($videos->count()==0)
                    <h5>暂时没有学习记录</h5>
                @endif
                @foreach($videos as $video)
                    <li class="list-group-item pl-0 d-flex justify-content-between">
                        <a href="{{route('edu.front.video.show',$video)}}">
                            {{$video->title}}
                        </a>
                        <span class="small text-secondary">
                    {{$video->pivot->updated_at->diffForHumans()}}
                </span>
                    </li>
                @endforeach
            </ul>
            <div class="mt-2">
                @include('edu::layouts.paginate',['data'=>$videos])
            </div>
        </div>
    </div>
@endsection
